#include <bits/stdc++.h>
using namespace std;
int arr[5] = {50,30,50,70,40};
int idx = -1;
int value = 0;
int max = 0;
int gcd = 0;
int n = sizeof(arr)/sizeof(int);
int get_gcd()
{
    int gcd = -1;
    for(int i = 0;i<n;i++)
    {
        int j = arr[i];
        if(gcd == -1)
        {
            gcd = j;
        }else{
            while(j!=)
        }
    }
}
int main()
{

}